{template header}

<div class="container">

    <div class="panel panel-default">
        <div class="panel-body">
<div class="onecate">
<ul>
<li><a href="{tsUrl('study')}">首页</a></li>
{loop $arrOneCate $key $item}
<li>
<a {if $item['cateid']==$strCate['cateid']}class="select"{/if} href="{tsUrl('study','cate',array('id'=>$item['cateid']))}"> {$item['catename']}</a>
</li>
{/loop}
<li class="create"><a href="{tsUrl('study','create')}">创建课程</a></li>
</ul>
</div>
</div>
</div>



<div class="twocate">
<h1><a href="{tsUrl('study','cate',array('id'=>$oneCate['cateid']))}">{$oneCate['catename']}</a></h1>
<ul>
{loop $arrTwoCate $key $item}
<li><a {if $item['cateid']==$strCate['cateid']}class="on"{/if} href="{tsUrl('study','cate',array('id'=>$item['cateid']))}" >{$item[catename]}</a></li>
{/loop}
</ul>
</div>


    <div class="panel panel-default">
        <div class="panel-heading">{$strCate['catename']}</div>
        <div class="panel-body">

            <div  class="row kecheng">
                {loop $arrStudy $key $item}
                <div class="col-md-3">


                    <div class="thumbnail">

                        <div class="photo"><a href="{tsUrl('study','show',array('id'=>$item['studyid']))}">
                            {if $item['photo']}
                            <img src="{php echo tsXimg($item['photo'],'study','255','140',$item['path'],'1')}" />
                            {else}
                            <img alt="{$item['studyname']}" src="{SITE_URL}app/study/skins/default/kecheng.gif">
                            {/if}
                        </a>
                        </div>
                        <p class="title"><a title="{item['studyname']}" href="{tsUrl('study','show',array('id'=>$item['studyid']))}">{$item['studyname']}</a></p>
                        <p>
                            <span>学员：{$item['count_learn']}</span>
                            <span>课时：{$item['count_lesson']}</span>
                            <span><a title="{$item['user']['username']}" href="{tsUrl('user','topic',array('id'=>$item['user']['userid']))}">{$item['user']['username']}</a></span>
                        </p>


                    </div>


                </div>
                {/loop}
            </div>


            <div class="page">{$pageUrl}</div>


</div>
</div>



</div>
{template footer}